package org.lg.web.controller;

import org.lg.config.*;
import org.lg.dto.BaseDto;
import org.lg.service.LoginService;
import org.lg.vo.Account;

@Controller("/loginController")
public class LoginController {
    @Resource
    LoginService loginService;
    @RequestMapping("/login")
    @ResponseBody
    public BaseDto login(@RequestBody Account account) throws Exception {
      return loginService.login(account);
    }
    public BaseDto loginOut(){
      return null;
    }
}
